﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TopologyWizzard
{
    [Serializable]
    public class Connection
    {
        private String remoteRouterName;
        private String remoteInterfaceName;
        private int xEnd;
        private int yEnd;

        public Connection(String router, String interf, int x, int y)
        {
            remoteRouterName = router;
            remoteInterfaceName = interf;
            xEnd = x;
            yEnd = y;
        }
        public Connection()
        {
            remoteRouterName = "";
            remoteInterfaceName = "";
            xEnd = 0;
            yEnd = 0;
        }

        public int XEnd
        {
            get
            {
                return xEnd;
            }
            set
            {
                xEnd = value;
            }
        }

        public int YEnd
        {
            get
            {
                return yEnd;
            }
            set
            {
                yEnd = value;
            }
        }

        public String RemoteRouterName
        {
            get
            {
                return remoteRouterName;
            }
            set
            {
                remoteRouterName = value;
            }
        }

        public String RemoteInterfaceName
        {
            get
            {
                return remoteInterfaceName;
            }
            set
            {
                remoteInterfaceName = value;
            }
        }
    }
}
